import greenfoot.*;  

public class RulesButton extends Actor {
    public RulesButton() {
        setImage(new GreenfootImage("苦难理解", 30, Color.WHITE, new Color(0,0,0,0)));
    }

    public void act() {
        if (Greenfoot.mouseClicked(this)) {
            Greenfoot.setWorld(new RulesWorld()); // 跳转到规则界面
        }
    }
}
